//
//  DYVoucherVC.m
//  kafuMerchant
//
//  Created by 帝云科技 on 2018/9/17.
//  Copyright © 2018年 帝云科技. All rights reserved.
//

#import "DYVoucherVC.h"
#import "DYRechargeSetCell.h"

@interface DYVoucherVC ()

@end

@implementation DYVoucherVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
}
-(void)dy_initUI
{
    [super dy_initUI];
    
    self.tableView.backgroundColor=WhiteColor;

    self.tableView.emptyDataSetDelegate=self;
    self.tableView.emptyDataSetSource=self;
    [self.tableView registerClass:[DYTableViewCell class] forCellReuseIdentifier:@"DYRechargeSetCell"];
}
-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    return 1;
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return self.dataArray.count;
}
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    return BILIHEIGHT(40);
}
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    DYTableViewCell *cell=[tableView dequeueReusableCellWithIdentifier:@"DYRechargeSetCell" forIndexPath:indexPath];
    return cell;
}
#pragma mark - 暂无数据delegate datasource
-(UIImage *)imageForEmptyDataSet:(UIScrollView *)scrollView
{
    return IMG(@"img_buiding");
}
- (NSAttributedString *)titleForEmptyDataSet:(UIScrollView *)scrollView {
    NSString *title = @"活动策划中...";
    NSDictionary *attributes = @{
                                 NSFontAttributeName:kFont(15),
                                 NSForegroundColorAttributeName:[UIColor xhq_base]
                                 };
    return [[NSAttributedString alloc] initWithString:title attributes:attributes];
}
- (void)didReceiveMemoryWarning {
    
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
